package com.mall.feign.clients;

import com.mall.autoconfig.interceptor.FeignInterceptor;
import com.mall.model.domain.PmsProduct;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName PmsProductClien
 * @Description marketing模块发出获取Pms获取商品信息
 * @Author Young
 * @Date 2023/3/12 16:56
 * @Version 1.0
 */
@FeignClient(name = "mall-service-commodity", configuration = FeignInterceptor.class)
public interface PmsProductCliens {
    @GetMapping("/product/findById")
    PmsProduct getProductInfo(Long id);
}
